/*
*change log 2013.3.14
*/

/*
RECORDS_COLLECT=[];//all records collection
REDBALL_COUNT= [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]; //keep each red ball statitics
BLUEBALL_COUNT=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];
*/
/*
* collects is G_OBJECT object ,define in global.js
*/
function stat(collects)
{
 for(row=0;row<	collects.RECORDS_COLLECT.length;row++)
   {
    for(ea=RB_START_INDEX;ea<RB_END_INDEX;ea++)
     {
       collects.REDBALL_COUNT[(collects.RECORDS_COLLECT[row][ea])-1]++;
     	}	
   	}
}

function printStat(obj)
{
	result="";
	print("--------------------------------------------");
 for(i=0;i<RB_MAX_VALUE;i++)
 {
  result=result+((i+1)<10?"0"+(i+1):i+1)+":"+obj.REDBALL_COUNT[i]+",";	
  if((i+1)%16 == 0)result=result+"\n";
 	}	
 	print(result);
}
function anaylist(collect)
{
var result={};	
var name="";
for(var i=RB_START_INDEX;i<=RB_END_INDEX;i++)
   {
    	
   }	
return result;  	
}